package com.cloud.common.shield;

import com.cloud.common.shield.enums.ShieldMethodEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 屏蔽字段
 *
 * @author wangjian
 * @version 1.0.0
 * @create 2020年10月21日11:54
 * Life is so short,do something to make yourself happy,such as coding
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.FIELD })
public @interface ShieldField {

    /**
     * 屏蔽方式
     * @return
     */
    ShieldMethodEnum method() default ShieldMethodEnum.ALL;

    /**
     * 附加条件值
     * @return
     */
    String[] addition() default {};

}
